package com.atqh.logistics.controller.RegisterController;

import com.atqh.logistics.Aop.LogAnnotation;
import com.atqh.logistics.service.CustomService;
import com.atqh.logistics.service.ManagerService;
import com.atqh.logistics.utils.Result;
import com.atqh.logistics.utils.Vo.params.CustomRegisParam;
import com.atqh.logistics.utils.Vo.params.ManagerRegisParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者：大叔azhe
 * @api：详细描述
 * @创建时间：16:19 2023/4/11
 */
@RestController
@CrossOrigin
@RequestMapping("/manager")
public class ManagerRegisterController {

    @Autowired
    private ManagerService managerService;

    @ApiOperation("管理员注册")
    @RequestMapping("/register")
    @LogAnnotation(module = "管理员模块", operator = "管理员注册")
    public Result register(@RequestBody ManagerRegisParam managerRegisParam) {
        return managerService.register(managerRegisParam);
    }

}
